home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows the use of Len --->
-
- <HTML>
-
- <HEAD>
- <TITLE>
- Len Example
- </TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>Len Example</H3>
-
- <CFIF IsDefined("Form.MyText")>
- <!--- if len is 0, then err --->
- <CFIF Len(form.myText) is not 0>
-
- <P>Your string, <CFOUTPUT>"#form.myText#"</CFOUTPUT>,
- has <CFOUTPUT>#Len(form.myText)#</CFOUTPUT> characters.
-
-
- <CFELSE>
-
- <P>Please enter a string of more than 0 characters.
- </CFIF>
-
- </CFIF>
-
- <FORM ACTION="len.cfm" METHOD="POST">
- <P>Type in some text to see the length of your string.
-
- <BR><INPUT TYPE="Text" NAME="MyText">
-
- <BR><INPUT TYPE="Submit" NAME="Remove characters">
-
- </FORM>
- </BODY>
- </HTML>
-
-